]> dgit.raspbian.org Git - gnome-shell.git/commit
js: Avoid double declarations with let
authorPhilip Chimento <philip@endlessm.com>
Fri, 10 Feb 2017 02:12:59 +0000 (18:12 -0800)
committerPhilip Chimento <philip.chimento@gmail.com>
Fri, 10 Feb 2017 21:35:50 +0000 (13:35 -0800)
commitaefd61c3db6056063ada1cb58bf67b088cc59ff0
tree88640ea944047e274a42e793f5b20a8fd94a6c14
parentf7752ac6994e35cf3b1daa1237eda9175ae4188c
js: Avoid double declarations with let

The following code is a syntax error in ES6:

    let a = 'something';
    let a = 'other thing';

Previously GJS would silently accept this code, but in the next release the
SpiderMonkey JS engine will be more ES6-compliant.

https://bugzilla.gnome.org/show_bug.cgi?id=778425
js/misc/keyboardManager.js
js/ui/dateMenu.js
js/ui/endSessionDialog.js
js/ui/notificationDaemon.js